﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Sorteo.aspx.cs" Inherits="RosarioFinanzas.Sorteo.Sorteo" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>Rosario Finanzas - Sorteo </title>
    
   
    <link rel="shortcut icon" href="http://rosariofinanzas.com.ar/Imagenes/RF_favicon.ico" type="image/x-icon" />
    <link rel="icon" href="http://rosariofinanzas.com.ar/Imagenes/RF_favicon.ico" type="image/x-icon" />

    <link href="../CSS/Master.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/Master.css?ver=1.6" rel="stylesheet" type="text/css" />
    <link href="../CSS/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/bootstrap-social.css" rel="stylesheet" type="text/css" />
    <link href="../font-awesome/css/font-awesome.min.css" rel="stylesheet"  type="text/css" />

    <link href="../CSS/jquery/jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/Botones.css" rel="stylesheet" />
    <link href="CSS/Sorteo.css" rel="stylesheet" />
    
    <script src="../scripts/jquery/jquery-1.11.2.min.js" type="text/javascript"></script>
    <script src="../scripts/jquery/jquery-ui-1.8.14.custom.js" type="text/javascript"></script>
    <script src="../scripts/bootstrap.min.js" type="text/javascript"></script>
    <script src="../scripts/jarq.js" type="text/javascript"></script>
    
    <script type="text/javascript">
        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', 'UA-28485653-1']);
        _gaq.push(['_trackPageview']);

        (function () {
            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
            ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();
        var id;
        $(document).ready(function () {
            //GetObjetos('articulos.aspx');
            //id = idArticulo();

            strfecha();

            $("#btnShareFacebook").click(
                function () {
                    FB.ui({
                        method: 'share',
                        href: window.location.href,
                        picture: 'http://rosariofinanzas.com.ar/Imagenes/FB_Posts.jpg'
                    },
                    function (response) {
                        
                        if (response != undefined) {

                            GetNroRedesSociales($("#txtDNI").val(), '2');                            
                        }
                        else {                           
                            alert('Debe compratir nuestro sorteo en Facebook para que podamos asignarle un número adicional');
                        }
                    });
                });

            if ($('#btnEnviar').attr('disabled') != 'disabled') {

                $("#divSocialMedia").hide();

            };

            twttr.ready(function (twttr) {
                twttr.events.bind('tweet', eventTweet);
            });
            
            function eventTweet(intentEvent) {

                if (!intentEvent) {

                    alert('Debe enviar el Tweet para que podamos asignarle un número adicional');
                } else {

                    GetNroRedesSociales($("#txtDNI").val(), '3');
                }
            }

        });

    </script>

</head>
<body>
    <script>(function (d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = "//connect.facebook.net/es_ES/sdk.js#xfbml=1&appId=599980953429198&version=v2.0";
    fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
    <form id="form1" runat="server">
         <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="True">
        </asp:ScriptManager>
     <div id="Contenedor">
            <div id="Cabecera">
                
                    <div id="Fecha">
                        
                    </div>                

                <div class="Region">
                    Rosario, Santa Fe, Argentina
                </div>
                <a href="http://rosariofinanzas.com.ar">
                    <img class="Cabecera" src="http://rosariofinanzas.com.ar/Imagenes/cabecera3.png" /></a>
            </div>
         <div id="Publicidad" style="position:relative;" >
             <div style="" ><img src="Imagenes/Sorteo23.png" /></div>
             <div id="Regalo2" style="text-align:center;z-index:10;position:absolute;left:220px;top:140px;width:450px; ">
             <asp:Label ID="lblDesc3" runat="server" Text="" Font-Size="17pt" Font-Overline="False" Font-Names="Trebuchet MS" ForeColor="White"></asp:Label>

             </div>
             <div id="Regalo" style="z-index:10;position:absolute;left:300px;top:240px;width:300px; "><asp:Label ID="lblSorteo2" runat="server"></asp:Label></div>
             <div id="Participantes" style="text-align:center;z-index:10;position:absolute;left:528px;top:335px;width:450px; ">
             <asp:Label ID="lblParticipantes" runat="server" Text="1000" Font-Size="11pt" Font-Overline="False" Font-Names="Trebuchet MS" ForeColor="Black" Font-Bold="True"></asp:Label>

             </div>
        </div>
        <div id="Cuerpo">
            <div class="Izq">
                <span class="H1"><asp:Label ID="lblSorteo" runat="server"></asp:Label></span><br />
                <br />
                <span class="H1"><strong>Conocé más sobre Expo Inversiones Rosario 2015 haciendo click <a href="http://rosariofinanzas.com.ar/ExpoInversiones/Expo.html" target="_blank"> en este link </a> </strong> </span>
                <br />
                <br />
                <span class="p"></span><br />
                <div class="P2" style="text-align:center;">
                    <asp:Label ID="lblUsuarioInscripto" CssClass="H2" ForeColor="#6666ff" runat="server"></asp:Label>
                    <br />
                    <asp:Label ID="lblEmailConfirmacion" CssClass="H2" ForeColor="#336699" Visible="false"   runat="server">Le hemos enviado un email que confirma su inscripción</asp:Label>
                    <br />
                    <br />
                    <br />
                    <br />
                    <div id="divSocialMedia" style="margin-left:130px">
                        <div style="float:left; margin-top:10px">
                            <a id="linkTwitter" href="https://twitter.com/share" class="twitter-share-button" data-url="http://rosariofinanzas.com.ar/sorteo/sorteo.aspx" data-text="¡Ganate el libro 'Casual Mente' de Martín Tetaz!" data-size="large" data-count="none" data-via="rosariofinanzas" data-hashtags="RFSortea">Tweet</a>
                        </div>
                        <div style="float:left;">
                            <a class="btn btn-social-icon btn-lg btn-facebook" id="btnShareFacebook" style="margin-left:50px;">
                                <i class="fa fa-facebook"></i>
                            </a>
                        </div>
                    </div>                   

                </div>
                <div class="H2"><br /><br /><br /><br /><br />
                    * Campos Obligatorios<br /> <a href="BasesyCondiciones.aspx" target="_blank">BASES Y CONDICIONES</a></div>
            </div>
            <div class="Der">  

                <span class="lbl">Nombre *</span><br />
                <span>
                    <asp:TextBox ID="txtNombre" runat="server" CssClass="ctr"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RFNombreApellido" runat="server" ControlToValidate="txtNombre"
                        ErrorMessage="*" Font-Size="XX-Large"></asp:RequiredFieldValidator>
                </span>
                <span class="lbl">Apellido *</span><br />
                <span>
                    <asp:TextBox ID="txtApellido" runat="server" CssClass="ctr"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtApellido"
                        ErrorMessage="*" Font-Size="XX-Large"></asp:RequiredFieldValidator>
                </span>
                <br />
                  <span class="lbl">DNI *</span><br />
                <span>
                    <asp:TextBox ID="txtDNI" runat="server" CssClass="ctr"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtDNI"
                        ErrorMessage="*" Font-Size="XX-Large"></asp:RequiredFieldValidator>
                </span>
                <br />
                  <span class="lbl">Provincia *</span><br />
                <span>
                    <asp:TextBox ID="txtProvincia" runat="server" CssClass="ctr"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtProvincia"
                        ErrorMessage="*" Font-Size="XX-Large"></asp:RequiredFieldValidator>
                </span>
                <br />
                <span class="lbl">Email *</span><br />
                <span>
                    <asp:TextBox ID="txtEmail" runat="server" CssClass="ctr"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RFEmail" runat="server" ControlToValidate="txtEmail"
                        ErrorMessage="*" Font-Size="XX-Large"></asp:RequiredFieldValidator>
                </span>
                <br />
                
                <span style="margin-left: 270px;">
                 
                    <asp:Button ID="btnEnviar" runat="server" CssClass="ctr" Style="width: 100px;" Text="Enviar" OnClick="btnEnviar_Click" /><br />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Formato inválido"
                        ControlToValidate="txtEmail" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></span>
                 
            </div>
        </div>
            <div id="pie" class="PiePrincipal">              

                <img id="ImagenPie" runat="server" src="Imagenes/PieSinFbYTw.png"  usemap="#Map" style="width: 100%; border: 0;" />
            

                <map name="Map" id="Map">
                    <area shape="rect" coords="86, 907, 412, 941" href="Inscripcion.aspx" target="_blank" />
                    <area shape="rect" coords="88, 961, 390, 987" href="../Contactos.aspx" target="_blank" />
                   
                     <%--<area shape="rect" coords="386, 128, 450, 190" style="cursor:pointer;" id="btnShareTwitter"  runat="server" visible ="false" />--%>


                   <%-- <area shape="rect" coords="461, 130, 520, 188" style="cursor:pointer;" id="btnShareFacebook" runat="server" visible="false" />--%>
                    <area shape="rect" coords="344, 219, 569, 293" href="Ganadores.aspx" target="_blank" />
               
                </map>
            </div>
         </div>
    </form>
    <script>window.twttr = (function (d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0],
      t = window.twttr || {};
    if (d.getElementById(id)) return;
    js = d.createElement(s);
    js.id = id;
    js.src = "https://platform.twitter.com/widgets.js";
    fjs.parentNode.insertBefore(js, fjs);

    t._e = [];
    t.ready = function (f) {
        t._e.push(f);
    };

    return t;
}(document, "script", "twitter-wjs"));</script>
        <!-- Google R -->
<script type="text/javascript">
    /* <![CDATA[ */
    var google_conversion_id = 1004176448;
    var google_custom_params = window.google_tag_params;
    var google_remarketing_only = true;
    /* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/1004176448/?value=0&amp;guid=ON&amp;script=0"/>
</div>
</noscript>
</body>
</html>
